<%@ page language="java" contentType="text/html; charset=utf-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>ERP Login</title>
<base href="/erp/static/adminlte/">
<!-- Tell the browser to be responsive to screen width -->
<meta
	content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
	name="viewport">
<link rel="shortcut icon" type="image/x-icon"
	href="/dist/img/favicon.ico">
<%@ include file="../common.jsp"%>
</head>
<body>
		<div class="row">
			<div class="col-md-12">
				<div class="box box-primary">
					<form id="dataDictionary-add-form" method="post">
						<div class="box-header with-border">
							<h3 class="box-title">数据字典添加</h3>
						</div>
						<div class="box-body">
							<div class="form-group">
								<label for="exampleInput" id="fieldNameLabel">字段名</label> <input
									type="text" class="form-control" name="fieldName"
									id="fieldName" placeholder="输入字段名...">
							</div>
							<div class="form-group">
								<label for="exampleInput" id="fieldCodeLabel">CODE</label> <input
									type="text" class="form-control" name="fieldCode"
									id="fieldCode" placeholder="输入code值...">
							</div>
							<div class="form-group">
								<label for="exampleInput" id="sortLabel">排序</label> <input
									type="text" class="form-control" name="sort" id="sort"
									placeholder="排序，请输入整数...">
							</div>
							<div class="form-group">
								<label for="exampleInput">备注</label> <input type="text"
									class="form-control" name="remark" id="remark"
									placeholder="输入备注...">
							</div>
						</div>
						<div class="box-footer  pull-right">
							<button id="dataDictionary_add" type="button"
								data-dismiss="modal" class="btn btn-info ">添加11</button>
							<button type="button" class="btn btn-default"
								data-dismiss="modal">取消</button>
						</div>
					</form>
				</div>
			</div>
		</div>
</body>
<script type="text/javascript">
	$(function() {
		
		var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
		parent.layer.iframeAuto(index);
		
		$("#dataDictionary_add").click(function() {
			alert(1);
			parent.test1(); //调用parent方法
			var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
			parent.layer.close(index); //再执行关闭        
		});

	});
</script>